package com.wo2record.demo;

import org.springframework.beans.factory.annotation.Autowired;

import com.opensymphony.xwork2.ActionSupport;

public class StudentAction extends ActionSupport {

	private static final long serialVersionUID = 1L;

	@Autowired
	private StudentService studentService;
	
	private Student student;
	
	public String save(){
		studentService.save(student);
		return "saveSuccess";
	}

	//Getter and Setter
	public Student getStudent() {
		return student;
	}
	public void setStudent(Student student) {
		this.student = student;
	}
}
